package com.wgts.wgts.localbean;

import android.os.Parcel;
import android.os.Parcelable;

public class LocalWinner implements Parcelable{

    public String userNickName;

    public String userImage;

    public String winningTime;

    public int userId;

    public LocalWinner() {
        userNickName = "";
        userImage = "";
    }

    protected LocalWinner(Parcel in) {
        userNickName = in.readString();
        userImage = in.readString();
        winningTime = in.readString();
        userId = in.readInt();
    }

    public static final Creator<LocalWinner> CREATOR = new Creator<LocalWinner>() {
        @Override
        public LocalWinner createFromParcel(Parcel in) {
            return new LocalWinner(in);
        }

        @Override
        public LocalWinner[] newArray(int size) {
            return new LocalWinner[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(userNickName);
        dest.writeString(userImage);
        dest.writeString(winningTime);
        dest.writeInt(userId);
    }
}
